mobileAdGetTopLeft
Type
function
Summary
Returns the topLeft position of an ad.
Syntax
mobileAdGetTopLeft (<adName>)
Description
Use the mobileAdGetTopLeft function to retrieve the top left postition of an ad.
The mobileGetTopLeft function returns the topLeft position of an ad.
Parameters
Name | Type | Description |
---|---|---|
adName | The name of ad (as specified in mobileAdCreate). |
Examples
put mobileAdGetTopLeft("my ad") into tTopLeft
Value
Name | Type | Description |
---|---|---|
return | Returns the topLeft position of an ad. This is 2 comma separated values giving the left and top coordinates of the ad relative to the topLeft corner of the stack, which is 0,0. Returns "ad not found" if the ad does not exist. | |
the result | Before calling this function you must have registered your app's id using mobileAdRegister. If not, the result will contain "not registered with service". |
Related
property: topLeft
command: mobileAdCreate, mobileAdDelete, mobileAdSetVisible, mobileAdSetTopLeft, mobileAdRegister
function: mobileAdGetVisible
message: adLoaded, adLoadFailed, adClicked
Compatibility and Support
Introduced
LiveCode 5.5
OS
ios
android
Platforms
mobile